

#include "findCornerPoint.hpp"
#include <time.h>
//#include<unistd.h>
using namespace cv;

int main()
{
    
    //const double begin=(double)clock()/CLK_TCK;
    time_t begin=clock();
    Mat src = imread("/Users/new/Desktop/2017.8.23--小服务器拍两次的角图/2 (37).tiff",IMREAD_GRAYSCALE);
    FindCornerPoint find;
    Point corner;
    float turnAngle;
    
    find.getCornerInfo(src, corner, turnAngle);
    resize(src, src, Size(1024, 618));
    imwrite("/Users/new/Desktop/6/2(37).tiff", src);
    //
    //const double end=(double)clock()/CLK_TCK;
    
    cout <<"time:"<<(double)(clock()-begin)/CLOCKS_PER_SEC<<endl;
    imshow("ds", src);
   waitKey(0);
    return 0;
}
